package com.imooc.demo.service;

import com.imooc.demo.entity.UserAddressinfo;
import com.imooc.demo.entity.UserInfo;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

public interface UserInfoService {

   //判断用户是否登陆过
     boolean queryOpenidExist(String buyerOpenid);
    //保存用户
     void saveUserInfo(UserInfo userInfo);

     boolean  insertUserInfo(UserInfo userInfo);

    boolean updateUserInfo(UserInfo userInfo);


    List<UserAddressinfo> getUserInfoByOpenid(String buyerOpenid);
   /* boolean updateUserAddress( UserAddressinfo userAddressinfo);
    boolean removeUserAddress( Integer addressId);*/
    /**
     * 添加种类信息
     * @param
     * @return
     */
   /* boolean insertUserAddressinfo(UserAddressinfo userAddressinfo);
    UserAddressinfo getAddressinfoById(Integer addressId);*/


    UserInfo getUserInfo(String buyerOpenid);


    ///////////插入联系方式
    boolean insertPhone(UserInfo userInfo);
    UserInfo getUserIndex(String buyerOpenid);
}
